package com.jackeysun.common.text

import android.content.Context
import android.util.AttributeSet

/**
 *   Created by sunxunchao on 2022/1/4.
 */
class SelectCallbackTextView @JvmOverloads constructor(
    context: Context,
    attrs: AttributeSet? = null,
    defStyleAttr: Int = 0
) : SelectableTextView(context, attrs, defStyleAttr) {

    var onSelectListener: OnSelectListener? = null
    override fun show() {
        onSelectListener?.onSelected(getSelectedText())
    }
}